﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace Archives
{
    public class WKF_WorkflowAttachmentMap : EntityTypeConfiguration<WKF_WorkflowAttachment>
    {
        public WKF_WorkflowAttachmentMap()
        {
            // Primary Key
            this.HasKey(t => t.AttID);
            // Properties
            //                
            this.Property(t => t.AttID)
                .IsRequired()
                .HasMaxLength(100)
                .HasColumnName("AttID");
            //                
            this.Property(t => t.AttFileName)
                .IsRequired()
                .HasMaxLength(100)
                .HasColumnName("AttFileName");
            //                
            this.Property(t => t.AttExtension)
                .IsRequired()
                .HasMaxLength(100)
                .HasColumnName("AttExtension");
            //                
            this.Property(t => t.UploadTime)
                .IsRequired()
                .HasColumnName("UploadTime");
            //                
            this.Property(t => t.AttFileSize)
                .HasColumnName("AttFileSize");
            //                
            this.Property(t => t.WkfObjectType)
                .HasMaxLength(100)
                .HasColumnName("WkfObjectType");
            //                
            this.Property(t => t.WkfObjectID)
                .HasMaxLength(100)
                .HasColumnName("WkfObjectID");
            // Table & Column Mappings
            this.ToTable("WKF_WorkflowAttachment");


        }
    }
}